import { Component, OnInit, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';

@Component({
  // tslint:disable-next-line:component-selector
  selector: 'avt-button',
  template: `
      <ng-content></ng-content>
  `,
  styles: [
    `
      :host {
        display: inline-block;
        padding: 7px 20px;
        border-radius: 3px;
        font-size: 1.2rem;
      }
    `
  ],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class AvtButtonComponent implements OnInit {

  @HostBinding('style.background') @Input() background = '#546e95';
  @HostBinding('style.color') @Input() textColor = '#fff';
  constructor() { }

  ngOnInit(): void {
  }

}
